package com.saishi.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Classes {
    int cid;
    String cname;
    String cgrade;
    String cstate;
    Date ccreatime;
    int teacher;

    public Classes(String cname, Date ccreatime) {
        this.cname = cname;
        this.ccreatime = ccreatime;
    }




    @Override
    public String toString() {
        return "\nclasses{" +
                "cid=" + cid +
                ", cname='" + cname + '\'' +
                ", cgrade='" + cgrade + '\'' +
                ", cstate='" + cstate + '\'' +
                ", ccreatime=" + ccreatime +
                ", teacher='" + teacher + '\'' +
                '}';
    }
}
